<template>
  <div class="content">
    <div class="index-header-box" id="head">
      <div class="index-header">
        <div @click="$router.back(-1)" class="back">
          <van-icon name="arrow-left"/>
        </div>
        <div class="title">{{info.title}}</div>
      </div>
    </div>

    <div class="svr-content" v-html="info.content">

    </div>

    <div class="svr-bottom-box">
      <div class="svr-bottom">
        <router-link :to="{name:'publicSvr'}" class="left-btn pull-left">在线咨询</router-link>
        <a :href="'tel:'+info.mobile" class="right-btn pull-left">电话咨询</a>
        <router-link :to="{name:'svrOrder',query:{id:info.id}}" class="right-btn-sq pull-right">申请{{info.title}}</router-link>
      </div>
    </div>

  </div>
</template>

<script>

  export default {
    name: "detail",
    components: {

    },
    data() {
      return {
          id: this.$route.query.id,
          info:[],
      }
    },
    computed: {},
    mounted: function () {
      this.init();
    },
    methods: {
        init(){
            this.$api.svr.detail(this.id).then(res=>{
                var res=res.data;

                this.info=res.data;
            });
        }
    },
  }
</script>

<style lang="scss" scoped>
  @import "../../assets/scss/index.scss";
</style>
